package reources.server.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reources.server.utils.RespJson;

@RestController
public class MessagesController {

	@GetMapping("/resource1")
	public RespJson getResource1(){
		return RespJson.success("服务A -> 资源1 -> 读权限");
	}

	@GetMapping("/resource2")
	public RespJson getResource2(){
		return RespJson.success("服务A -> 资源2 -> 写权限");
	}

	@GetMapping("/resource3")
	public RespJson resource3(){
		return RespJson.success("服务A -> 资源3 -> profile 权限");
	}

	@GetMapping("/api/publicResource")
	public RespJson publicResource() {
		return RespJson.success("服务A -> 公共资源");
	}
}
